package com.bingquan.company.global.exception;

import org.apache.logging.log4j.util.Strings;

import java.util.Objects;

public class NotFoundException extends HttpException {
    public NotFoundException(Integer code, String msg) {
        if (Objects.isNull(code)) {
            code = 400;
        }
        this.code = code;

        if (Strings.isEmpty(msg)) {
            msg = this.getMessage();
        }
        this.msg = msg;
    }
}
